<!DOCTYPE HTML>
<html>
	<head>
		<title>Registration</title>
		<meta charset="utf-8"/>
		<link href="/static/css/bootstrap.min.css" rel="stylesheet">
		<meta name="viewport" content="user-scalable=no, width=device-width, initial-scale=1.0" />
		<script src="/static/js/jquery.js"></script>
		<script src="/static/js/bootstrap.min.js"></script>
		<script type="text/javascript" >
			var url="/api/newuser";
			$(document).ready(function(){
				$("#subm").click(function () {
					var user=$("#user").val();
					var pwd=$("#pwd").val();
					$.post(
						url,
						{
							"user" :user,
							"pwd"  :pwd
						},
						function (res) {
							alert(res);
						}
					);
				});
			});
		</script>
	</head>
	<body>
		<div class="form-group">
				<label for="inputPassword3" class="col-sm-2 control-label">user</label>
			<div class="col-sm-10">
				<input type="text" id="user"/>
			</div>
		</div>
		
		<div class="form-group">
			<label for="inputPassword3" class="col-sm-2 control-label">password</label>
			<div class="col-sm-10">
				<input type="password" id="pwd"/>
			</div>
		</div>
		
		<div class="form-group">
			<div class="col-sm-offset-2 col-sm-10">
				<button type="submit" class="btn btn-default" id="subm">register</button>
			</div>
		</div>
	</body>
</html>
